﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model Int32
@{
    ViewBag.Title = "Quota";
}
@*@Html.Partial("_ActivityNavPartial",Model)*@
<h2>配额</h2>
<div id="operate" class="formInput">
@using(Html.BeginForm("AddQuota","CandidateQuota",FormMethod.Post, new { enctype = "multipart/form-data" }))
    {
        <div>@Html.ActionLink(" 下载配额模板", "Download", "Home", new {filename="CandidateQuotaTemplate.xlsx" },null)</div>
        <input type="submit" value=" 导入 " />
        <input type="file" name="file" class="fileNew" id="fileNew" onchange="document.getElementById('textNew').value=this.value" />
         <input type="button" class="btnNew" value="浏览..." /> 
       <input type="text" name="textNew" id="textNew" class="textNew" readonly="true" /> 
        @Html.Hidden("activityID", new { activityID = Model })


    }
</div>

<fieldset>
        <legend> 配额表 </legend>
    <div class="displayCoordinate">
        @Html.PivotTable((System.Data.DataTable)ViewData["StatusTable"],"SubjectName", "CountyName", new string[] { "Quota" })
    </div>
</fieldset>

<fieldset>
        <legend> 修改配额 </legend>
<div id="save">
@using(Html.BeginForm("ChangeQuota","CandidateQuota",FormMethod.Post)){
    @Html.Hidden("ActivityID",Model)
    <div>区县：@Html.DropDownList("CountyCode",String.Empty)</div>
    <div>学科：@Html.DropDownList("SubjectID",string.Empty)</div>
    <div>配额：@Html.TextBox("Quota")</div>
    <div><input type="submit" value=" Save " /></div>
}
</div>
</fieldset>

<fieldset>
        <legend> 删除配额 </legend>
<div id="del">
@using (Html.BeginForm("DeleteQuota","CandidateQuota",FormMethod.Post))
{
    @Html.Hidden("ActivityID",new { activityID = Model })
    <div>学科：@Html.DropDownList("SubjectID",string.Empty)</div>
    <br />
    <div>
        1）已经有档案的配额不会被删除！需要先删除档案，然后再 <input type="submit" value=" 删除 " /> 配额。<br />
        2）已经有评委组或评分规则的学科不会被删除！
    </div>
    
}
</div>
</fieldset>